package cn.wsalix.shop.form;

import javax.validation.constraints.NotNull;

import lombok.Data;
import lombok.EqualsAndHashCode;
import cn.anlaser.form.SimpleForm;
import cn.wsalix.biz.entity.Category;
import cn.wsalix.shop.entity.Brand;
import cn.wsalix.shop.entity.Origin;
import cn.wsalix.shop.entity.Shop;
import cn.wsalix.shop.status.ProductEnum;
import cn.wsalix.shop.status.ShopOperateEnum;

@Data
@EqualsAndHashCode(callSuper = false)
public class ProductForm extends SimpleForm {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7945789723358247243L;
	@NotNull
	private Long parentCatId;
	private Long catId;
	private Category parentCat;
	private Category category;
	private ProductEnum status;
	private String remark;// 产品描述
	/**
	 * 
	 */
	private Long shopId;
	private Long productId;
	private String uploadType;
	private String logo;
	private String brand;// 品牌
	private String brandLogo;
	private String origin;
	private String originLogo;// 品牌
	private Integer postfree;
	private Integer count;
	private Integer price;// 价格
	private String content;
	private boolean tuanQuery;//是否进行团购查询
	private boolean tuan;

	private Long brandId;
	private Long originId;

	private Brand brandItem;
	private Origin originItem;

	private boolean catNull;

	private String savePath;
	private String httpUrl;

	private Long orderId;

	//private Shop shop;// 店铺

	// 业务操作类型
	private ShopOperateEnum shopOperate;
}
